//
//  T3_1_CCell.swift
//  Pods
//
//  Created by eme on 2017/4/10.
//
//

/*
 owner:cy
 update:2017年04月10日18:18:42
 info: 品牌类 cell
 VC :  HomePageVc
 */
import UIKit
import RxSwift
import UtilCore
import RickonCore

class T3_1_CCell: UICollectionViewCell {
    
    @IBOutlet weak var title_Lb: UILabel!
    
    @IBOutlet weak var brinfourl_ImgV: UIImageView!
    
    @IBOutlet weak var leftLine_V: UIView!
    
    @IBOutlet weak var bottomLine_V: UIView!
    
    static let interitemSpacing:CGFloat = 0
    static let lineSpacing:CGFloat = 0
    static let cellTop:CGFloat = 8
    static let cellBottom:CGFloat = 8
    static let cellLeft:CGFloat = 0
    static let cellRight:CGFloat = 0
    static var cellSize:CGSize{
        get{
            let width = screen_Width/4
            let height = ceil(width * ((152-16)/(750/4)))
            return CGSize(width: width, height: height)
        }
    }
    static var cellEdgeInsets:UIEdgeInsets{
        get{
            return  UIEdgeInsets(top: T3_1_CCell.cellTop, left: T3_1_CCell.cellLeft, bottom: T3_1_CCell.cellBottom, right: T3_1_CCell.cellRight)
        }
    }
    var item :T3ListModel?{
        didSet{
            if let item = self.item {
               self.brinfourl_ImgV.setUrlImage(item.pic,placeholderImage: "brand-placeholder")
                self.title_Lb.text = item.name
            }
        }
    }
    override func awakeFromNib() {
        self.leftLine_V.backgroundColor = Theme.v.separate_Line
        self.bottomLine_V.backgroundColor = Theme.v.separate_Line
        self.title_Lb.normal_fontSize(10)
    }
    
}
